import myAxios from "../MyAxios";
import BASEURL from "../BaseUrl";
const actorApi = {
  //添加演员接口/movie-actor/add
  add(params) {
    return myAxios.post(BASEURL + "/movie-actor/add", params);
  },
  // 查询演员列表接口
  list(params) {
    return myAxios.get(BASEURL + "/movie-actors", params);
  },
  //删除演员接口
  delete(params) {
    return myAxios.post(BASEURL + "/movie-actor/del", params);
  },
  //模糊查询通过姓名，
  listByName(params) {
    return myAxios.post(BASEURL + "/movie-actor/name", params);
  },
  //通过电影id查询演员
  listByMovieId(params) {
    return myAxios.get(BASEURL + "/movie-actors/movieid", params);
  },
};
export default actorApi;
